package com.mall.db.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mall.db.mapper.UmsMemberLevelMapper;
import com.mall.domain.UmsMemberLevel;
import com.mall.interface1.api.UmsMemberLevelApi;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class UmsMemberLevelApiImpl implements UmsMemberLevelApi {
    @Autowired
    private UmsMemberLevelMapper mapper;
    @Override
    public List<UmsMemberLevel> listAll(Integer defaultStatus) {
        LambdaQueryWrapper<UmsMemberLevel> qw = new LambdaQueryWrapper<>();
        qw.eq(UmsMemberLevel::getDefaultStatus,defaultStatus);
        return mapper.selectList(qw);
    }
}
